import cv2

img1=cv2.imread("test.jpg")
img2=cv2.resize(img1,(400,400))
cv2.imshow('img',img2)
cv2.waitKey(0)